package sssss;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import struts.action.Action;
import struts.form.ActionForm;



public class SAction implements Action{

	@Override
	public String execute(HttpServletRequest request,HttpServletResponse response, ActionForm form,
			Map<String, String> actionForward) {
		String url = "shibai";
		SForm myform = (SForm) form;
		if(myform.getName().endsWith("wxc")){
			url = "chenggong";
			
		}
		return actionForward.get(url);
	}

}
